package jvm.jtacck.serials;

import java.io.Serializable;

/**
 * @author Jesse Jeng
 * 
 *         The Barcode class wraps a value of the primitive type String in an
 *         object.
 * 
 *         An object of type Barcode contains a single field whose type is
 *         String.
 * 
 */
public class Barcode implements Serializable {
    /**
     * serialVersionUID for the class
     */
    private static final long serialVersionUID = 5031339088827918706L;

    /**
     * Unique barcode associated with a Specimen object
     * 
     * See Specimen
     */
    public final String barcode;

    /**
     * Constructs a newly allocated Barcode object that represents the specified
     * barcode value.
     * 
     * @param barcode
     *            The barcode to be converted to an Barcode.
     */
    public Barcode(String barcode) {
        this.barcode = barcode;
    }
}
